<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">
    <xi:include href="master.html" />

<?python
from mnemoply.preorders import preorders
?>

<head />

<body>
    <h2 align="center">Orders preparation</h2>

    <span>Preparations list</span>:
    <table>
        <thead>
        <tr>
            <th>Owner</th>
            <th>Creation date</th>
            <th>Type</th>
            <th>Comment</th>
            <th>Last update</th>
            <th>&nbsp;</th>
        </tr>
        </thead>

        <tbody>
            <tr py:for="record in preorder_list">
                <td>${record.owner.user_name}</td>
                <td>${record.creationDate}</td>
                <td><a href="${record.id}/">${preorders.preorders[record.pTypeTag].name}</a></td>
                <td>${record.comment}</td>
                <td>${record.lastUpdate}</td>
                <td><a href="${record.id}/delete">delete</a></td>
            </tr>
        </tbody>
    </table>
</body>
</html>
